import request from '@/utils/request'

export function getMessagesApi(params) {
  return request({
    url: '/admin/messages',
    method: 'get',
    params
  })
}
export function deleteMessagesApi(params) {
  return request({
    url: '/admin/messages',
    method: 'delete',
    data: params
  })
}

export function putMessagesApi(params) {
  return request({
    url: '/admin/messages',
    method: 'put',
    data: params
  })
}

// 批量删除留言
export function delMessagesBatchApi(params) {
  return request({
    url: 'admin/messages/all',
    method: 'delete',
    data: params
  })
}
// 批量更新
export function putMessagesBatchApi(params) {
  return request({
    url: 'admin/messages/all',
    method: 'put',
    data: params
  })
}
